package host

import (
	"context"
	"github.com/go-playground/validator/v10"
)

var (
	validate = validator.New()
)

// host app service 的接口定义
type Service interface {
	//录入主机
	CreateHost(ctx context.Context, host *Host) (*Host, error)
	// 查询主机列表
	QueryHost(ctx context.Context, QueryHostRequest *QueryHostRequest) (*HostSet, error)
	// 查询主机详情
	DescribeHost(ctx context.Context, QueryHostRequest *QueryHostRequest) (*Host, error)
	// 主机更新
	UpdateHost(ctx context.Context, UpdateHostRequest *UpdataHostRequest) (*Host, error)
	//主机删除,比如前端需要打印当前删除主机的IP或者其他信息
	DeleteHost(ctx context.Context, DeleteHostRequest *DeleteHostRequest) (*Host, error)
}
